W14. Matrix Dynamics and DFT
1. Theory
1.1 Matrix Exponentials and Linear Dynamic Systems
A first-order linear system of differential equations has the form
where
The solution of the system is
This formula is not just notation. Differentiating the power series term by term gives
so
When
then
Thus each eigenvector direction evolves independently, and the corresponding eigenvalue controls the growth or decay rate in that direction.
1.2 Stability from Eigenvalues, Trace, and Determinant
For a two-dimensional linear system
If both eigenvalues have negative real parts, all solutions near the origin decay toward the origin; the system is stable. If at least one eigenvalue has positive real part, there are solutions that grow away from the origin; the system is unstable. If eigenvalues are complex, their real part controls growth or decay while their imaginary part produces rotation.
For a
the trace and determinant are
The characteristic polynomial is
so the eigenvalues are
The quantity
- if
, the eigenvalues are real and distinct; - if
, the eigenvalues are repeated; - if
, the eigenvalues are complex conjugates with real part .
The determinant gives the product of the eigenvalues, and the trace gives their sum. Therefore, if
1.3 Nilpotent Matrices and Finite Exponential Series
A matrix
The infinite matrix exponential series collapses to a finite expression:
This is important because it shows that matrix exponentials are not always hard to compute. The structure of the matrix determines the method. Diagonalizable matrices are handled by eigenvectors; nilpotent matrices are handled by the power series directly.
1.4 Fourier Analysis and the Discrete Fourier Transform
Fourier analysis is based on the idea that complicated signals can be decomposed into simple oscillations. In continuous mathematics, this leads to the Fourier transform
Computers, however, work with finite lists of samples, not continuous functions. If
The DFT is used in audio processing, image compression, medical imaging, telecommunications, numerical differential equations, quantum mechanics, and many other fields. Its power comes from representing a signal in a frequency basis rather than the original time or sample basis. In that frequency basis, periodic structure, oscillations, and repeated patterns often become easier to detect, filter, compress, or solve with.
For deeper study of how the DFT leads to fast algorithms, the standard reference mentioned in the lecture is Strang’s Linear Algebra and Its Applications, especially the FFT chapter.
1.5 Roots of Unity
The DFT is built from roots of unity. The
They are
They lie evenly spaced on the unit circle in the complex plane. For example, when
In the DFT convention used here, we define the primitive root
Then
There are also two useful symmetry rules:
and
The key algebraic identity is the finite geometric sum:
This identity is the reason the Fourier matrix is orthogonal in the complex sense.
1.6 The Fourier Matrix
The DFT can be written as a matrix-vector multiplication:
The normalized
where
The factor
For example, when
1.7 Conjugate Fourier Matrix and Inverse DFT
The conjugate Fourier matrix is obtained by conjugating every entry of
The conjugate transpose
Therefore, if
Component-wise,
This is the inverse DFT under the symmetric normalization convention.
For
It differs from
1.8 Orthogonality and Unitarity of the Fourier Matrix
In complex vector spaces, orthogonality is measured with the Hermitian inner product, which uses conjugation. The columns of
To see why, compute the inner product of column
If
where
One subtle point is that the Fourier matrix is symmetric,
Several consequences follow immediately from unitarity. First,
Second, all eigenvalues of a unitary matrix have absolute value
1.9 Powers of the Fourier Matrix
The Fourier matrix has a remarkable connection with permutations. For the normalized DFT matrix,
Thus
For
The permutation fixes indices
The relationship with the conjugate matrix also explains the column permutation in the unnormalized convention. Since
2. Definitions
- Matrix exponential: The matrix function
, used to solve . - Linear dynamic system: A differential equation system of the form
, where the future state is determined by a matrix acting on the current state. - Stable system: A system whose solutions decay toward the equilibrium; for a
linear system this occurs when all eigenvalues have negative real parts. - Unstable system: A system with at least one eigenvalue having positive real part, so some solutions grow away from equilibrium.
- Trace: The sum of diagonal entries of a square matrix; for a
matrix it equals the sum of eigenvalues. - Determinant: A scalar measuring signed area/volume scaling; for a
matrix it equals the product of eigenvalues. - Nilpotent matrix: A matrix
such that for some positive integer . - Fourier analysis: The study of representing signals or functions as sums of complex exponentials.
- Continuous Fourier Transform: The integral transform
, which represents a continuous function by frequencies. - Discrete Fourier Transform (DFT): The transformation from
samples to frequency components, computed by sums involving roots of unity. - Root of unity: A complex number
satisfying for some positive integer . - Primitive
-th root of unity: A root whose powers generate all roots of unity; here . - Fourier matrix: The matrix
with entries , representing the normalized DFT. - Conjugate Fourier matrix: The entrywise conjugate
, with entries . - Inverse DFT: The operation that reconstructs the sample vector from its frequency components; under normalized convention it is multiplication by
. - Orthonormal basis: A basis whose vectors all have norm
and are pairwise orthogonal. - Unitary matrix: A complex square matrix
satisfying , equivalently . - Conjugate transpose: The matrix
obtained by transposing and conjugating every entry. - Kronecker delta: The symbol
, equal to if and otherwise. - Permutation matrix: A matrix obtained by permuting the columns of the identity matrix; multiplying by it permutes vector components.
3. Formulas
- Matrix exponential series:
. - Solution of a linear system:
for and . - Diagonalizable matrix exponential: If
, then . - Trace-determinant characteristic polynomial:
, where and . - Eigenvalues from trace and determinant:
. - Nilpotent exponential for
: . - Continuous Fourier Transform:
. - DFT component formula:
. - Primitive root of unity:
. - Periodicity of roots:
and . - Conjugation of roots:
. - Fourier matrix entries:
for . - Geometric sum of roots of unity:
if , and otherwise. - Fourier unitarity:
. - Inverse Fourier matrix:
. - Inverse DFT formula:
. - Column orthogonality identity:
. - Row orthogonality identity:
. - Fourier determinant magnitude:
for the normalized Fourier matrix. - Fourier square permutation:
and . - Possible Fourier eigenvalues: If
, then every eigenvalue of is in .
4. Practice
4.1 Eigenvalues, Eigenvectors, and Matrix Exponential (Lab 11, Task 1)
Find the eigenvalues, eigenvectors, and
Click to see the solution
Key Concept: Diagonalize
Step 1 — Find the eigenvalues.
Compute the characteristic polynomial:
Factor:
Therefore,
Step 2 — Find eigenvectors.
For
Thus
For
The equation is
Step 3 — Build the diagonalization.
Let
The inverse of
because
Step 4 — Exponentiate the diagonal matrix.
Therefore,
Multiply:
Answer:
and
4.2 Solve a Linear Differential Equation System (Lab 11, Task 2)
Solve
where
Click to see the solution
Key Concept: Use
From Task 1,
Multiply by the initial vector:
Compute each component explicitly:
Thus
Check the initial condition:
Interpretation: The sum
Answer:
4.3 Matrices for Three Stability Regions (Lab 11, Task 3)
Find a matrix
Click to see the solution
Key Concept: We may choose simple matrices whose eigenvalues are obvious. Diagonal matrices give prescribed real eigenvalues directly, and rotation-scaling blocks give complex eigenvalues.
(a) One negative and one positive eigenvalue.
Choose
Because this matrix is diagonal, its eigenvalues are the diagonal entries:
This lies in the region
(b) Two positive real eigenvalues.
Choose
Again the eigenvalues are read from the diagonal:
Here
(c) Complex eigenvalues with positive real part.
A standard matrix with eigenvalues
Choose
The characteristic polynomial is
Setting it equal to zero gives
So the eigenvalues are
Answer: One possible set is
4.4 Stability Changes from Trace and Determinant (Lab 11, Task 4)
From their trace and determinant, at what time
Click to see the solution
Key Concept: For a
Matrix
Compute trace and determinant:
The discriminant is
Now classify by
- If
, then . The eigenvalues have opposite signs, so the system is unstable. - If
, then . One eigenvalue is zero; this is the boundary between opposite-sign real eigenvalues and complex eigenvalues. - If
, then and , so eigenvalues are complex. Their real part is , so they are purely imaginary, not asymptotically stable.
Therefore
It moves from unstable real eigenvalues (
Matrix
Compute trace and determinant:
The discriminant is
So the eigenvalues are complex for every real
The real part is
- if
, both eigenvalues have negative real part, so the system is stable with complex eigenvalues; - if
, eigenvalues are purely imaginary, , so this is the stability boundary; - if
, both eigenvalues have positive real part, so the system is unstable with complex eigenvalues.
Thus
Answer:
4.5 Exponential of a Nilpotent Matrix (Lab 11, Task 5)
The matrix
Click to see the solution
Key Concept: If
First verify
Use the power series:
Since
Substitute
Now check the derivative:
Compute
Thus
Answer:
4.6 Powers of the Fourier Matrix from a Column Permutation (Lab 11, Task 6)
Find a permutation
Click to see the solution
Key Concept: This problem uses the unnormalized Fourier matrix. Its entries are
For column
This is the same as column
In index form:
Thus
Since
Because
Now use the given identity
Since
Therefore
Multiply on the right by
Then
Normalized version: If the normalized Fourier matrix is
Answer:
4.7 Solve a Fourier System (Lab 11, Task 7)
Solve the
Click to see the solution
Key Concept: The source problem uses the unnormalized
For the unnormalized matrix,
We need solve
Thus
Now
Multiply:
Therefore
Check:
Answer:
4.8 The Fourier Matrix (Lecture 11, Example 1)
For
Click to see the solution
Key Concept: Use
For
The entries are
Because this matrix is real,
Answer:
and its columns are orthonormal because
4.9 The Fourier Matrix (Lecture 11, Example 2)
For
Click to see the solution
Key Concept: For
Compute the root:
The Fourier matrix is
Since
Answer:
4.10 The Fourier Matrix (Lecture 11, Example 3)
For
Click to see the solution
Key Concept: Compute powers of
For
Its powers are
Now fill the entries row by row:
Reduce powers modulo
As a concrete entry check,
Answer:
4.11 Compute the DFT of a Four-Point Vector (Lecture 11, Example 4)
Compute the DFT of
Click to see the solution
Key Concept: The DFT is the matrix-vector product
Compute:
Only the first and third columns contribute:
Answer: The DFT of
4.12 Show that is a Permutation Matrix (Lecture 11, Example 5)
Show that
Click to see the solution
Key Concept: Applying the normalized Fourier transform twice reverses indices modulo
Using
direct multiplication gives
This matrix is a permutation matrix because each row and each column has exactly one entry equal to
Its action on a vector is
So
Answer:
which is the permutation matrix for index reversal modulo
4.13 Orthogonality of the Columns of (Lecture 11, Task 1)
Show that the columns of
Click to see the solution
Key Concept: In
Let the columns of
For
Check
Check
Check
Using conjugation,
Since
Because
Each column also has norm
Answer: The columns of